Hi,
I am trying to run the code
"forvalues i = 1(1)319 {
reg return mkt_rtn if id == `i' & estimation_window == 1
predict p if id == `i'
predict std_err_residual, stdr replace SE_residual = std_err_residual if id == `i' //& event window == 1
}"
but I get no observations. I believe that the problem occurs with "id== `i' as I do not see variables changing in the dataset.
I am trying to run the code
"forvalues i = 1(1)319 {
reg return mkt_rtn if id == `i' & estimation_window == 1
predict p if id == `i'
predict std_err_residual, stdr replace SE_residual = std_err_residual if id == `i' //& event window == 1
}"
but I get no observations. I believe that the problem occurs with "id== `i' as I do not see variables changing in the dataset.

Comment